<?php
if(!defined('linclude')){header('Location: ../404error.php');}

class cdb {

    function consultaDB($query){
        include_once ainclude.'/configuracion.php';
        $datos = new configuracion();
        $con = mysql_connect($datos->hostDB, $datos->userDB, $datos->passwordDB);
        if(!$con){
            die('Error de conexión '.mysql_error());
        }else{
        }
         mysql_select_db($datos->nameDB);
         $query = mysql_query($query);
        return $query;
    }
}
?>
